package com.prs.crm.domain.ca.work;


import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-3-28 15:31:37 物品信息
 */
@Entity
@Table(name = "ca_articleInfo")
public class ArticleInfo extends BaseEntity {

	private static final long serialVersionUID = 5201104759558244454L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 物品类别
	 */
	@ManyToOne
	private ArticleTypes ai_articleType;
	/**
	 * 物品名称
	 */
	private String ai_articleName;
	/**
	 * 物品规格
	 */
	private String ai_articleStandard;
	/**
	 * 单位
	 */
	private String ai_articleUnit;
	/**
	 * 单价
	 */
	private String ai_articleUnivalence;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="sp_articleInfoId")
	private Set<Storeparticular> storePar;

	@OneToMany(fetch=FetchType.LAZY,mappedBy="articleInfo")
	private Set<ProcureStore> procureStore;
	
	public Set<ProcureStore> getProcureStore() {
		return procureStore;
	}
	public void setProcureStore(Set<ProcureStore> procureStore) {
		this.procureStore = procureStore;
	}

	public Set<Storeparticular> getStorePar() {
		return storePar;
	}

	public void setStorePar(Set<Storeparticular> storePar) {
		this.storePar = storePar;
	}
	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ArticleTypes getAi_articleType() {
		return ai_articleType;
	}

	public void setAi_articleType(ArticleTypes aiArticleType) {
		ai_articleType = aiArticleType;
	}

	public String getAi_articleName() {
		return ai_articleName;
	}

	public void setAi_articleName(String aiArticleName) {
		ai_articleName = aiArticleName;
	}

	public String getAi_articleStandard() {
		return ai_articleStandard;
	}

	public void setAi_articleStandard(String aiArticleStandard) {
		ai_articleStandard = aiArticleStandard;
	}

	public String getAi_articleUnit() {
		return ai_articleUnit;
	}

	public void setAi_articleUnit(String aiArticleUnit) {
		ai_articleUnit = aiArticleUnit;
	}

	public String getAi_articleUnivalence() {
		return ai_articleUnivalence;
	}

	public void setAi_articleUnivalence(String aiArticleUnivalence) {
		ai_articleUnivalence = aiArticleUnivalence;
	}	
}
